namespace Knight.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class InitialCreate4 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.TNewsInfo", "DisplayIndex", c => c.Int(nullable: false));
            AddColumn("dbo.TNewsType", "DisplayIndex", c => c.Int(nullable: false));
            AddColumn("dbo.TSinglePageInfo", "DisplayIndex", c => c.Int(nullable: false));
            AddColumn("dbo.TClassACommodity", "DisplayIndex", c => c.Int(nullable: false));
            DropColumn("dbo.TNewsInfo", "DispayIndex");
            DropColumn("dbo.TNewsType", "DispayIndex");
            DropColumn("dbo.TSinglePageInfo", "DispayIndex");
        }
        
        public override void Down()
        {
            AddColumn("dbo.TSinglePageInfo", "DispayIndex", c => c.Int(nullable: false));
            AddColumn("dbo.TNewsType", "DispayIndex", c => c.Int(nullable: false));
            AddColumn("dbo.TNewsInfo", "DispayIndex", c => c.Int(nullable: false));
            DropColumn("dbo.TClassACommodity", "DisplayIndex");
            DropColumn("dbo.TSinglePageInfo", "DisplayIndex");
            DropColumn("dbo.TNewsType", "DisplayIndex");
            DropColumn("dbo.TNewsInfo", "DisplayIndex");
        }
    }
}
